<template>
  <div style="width:300px">
    <el-tabs v-model="activeName" @tab-click="handleClick" stretch>
      <el-tab-pane label="参数" name="params"></el-tab-pane>
      <el-tab-pane label="交互" name="mutual"></el-tab-pane>
      <el-tab-pane label="动画" name="animation"></el-tab-pane>
    </el-tabs>
    <slot name="default"></slot>
  </div>
</template>
<script>
export default {
  name: "component_name",
  data() {
    return {
      activeName: "params"
    };
  },
  methods: {
    handleClick(tab, event) {
      // console.log(tab, event);
      this.$emit("tabClick", this.activeName);
    }
  }
};
</script>
<style lang="scss" scoped>
.tabs-content {
  padding: 20px;
}
</style>
